#ifndef WIDGET_BACKGROUND_PARENT_H
#define WIDGET_BACKGROUND_PARENT_H

//小窗口背景父类
#include <QWidget>
#include <QPainter>
#include <QPen>
#include <QBrush>

class widget_background_parent : public QWidget
{
    Q_OBJECT
public:
    explicit widget_background_parent(QWidget *parent = nullptr);
    
    //设置背景颜色
    void set_color(QColor color);
    
protected:
    //重写绘图事件
    void paintEvent(QPaintEvent *event);
    
    QColor color;

signals:
    
};

#endif // WIDGET_BACKGROUND_PARENT_H
